<?php
use yii\helpers\Html;

use app\assets\AppAsset;
AppAsset::register($this);
AppAsset::addScript($this, '/js/umeditor1_2_2-src/jquery-2.2.1.min.js');
$this->title='test测试';
?>
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href=""/>
    <script src="/js/jquery-2.2.1.min.js"></script>
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>

</head>
<div class="codemirror-lines">
    <form action="add">
        <input type="text" name="url">
        <input type="submit" value="新增"'>
    </form>
    <div class="col-2">
        <?php foreach($data as $k=>$a ){?>

      <div class="col-md-3">
            <p> 域名:<?=$a['url'];?>名字:<?=$a['name']?> <a href="test2?id=<?=$a['id']?>">查看详情</a> </p>
        </div>
        <?php }?>
    </div>

</div>

